package offer;

public class PrintNumbers {
    public int[] printNumbers(int n) {
        int x = (int)Math.pow(10,n-1) - 1;
        int[] res = new int[x];
        for (int i = 0; i < x; i++) {
            res[i] = i+1;
        }
        return  res;
    }
}
